package cn.bugstack.chatgpt.domain.completions;

import cn.bugstack.chatgpt.domain.web.WebItent;
import cn.bugstack.chatgpt.domain.web.WebResult;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ComResponse implements Serializable {

    /** ID */
    private String id;
    /** 请求创建时间，是以秒为单位的Unix时间戳 */
    private Long created;
    /** model */
    private String model;
    /** 搜索意图结果 */

    private List<ChatChoice> choices;


    private ChatUsage usage;

    @JsonProperty("web_search")
    private List<WebResult> WebSearch;


/*    *//** ID *//*
    private String id;
    *//** 对象 *//*
    private String object;
    *//** 模型 *//*
    private String model;
    *//** 对话 *//*
    private List<ChatChoice> choices;

    *//** 耗材 *//*
    private Usage usage;
    *//**
     * 该指纹代表模型运行时使用的后端配置。
     * https://platform.openai.com/docs/api-reference/chat
     *//*
    @JsonProperty("system_fingerprint")
    private String systemFingerprint;*/

}
